
<form id="form_add"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<table>
	<tr>
		<td align="right">负责人：</td>
		<td><input type="text" name="emp" id="emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" size="12"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}" checked> 自己</td>
	</tr>
	<tr>
		<td align="right">帐号：</td>
		<td><input type="text" name="username" id="username" size="16" value="{[$result.username]}"></td>
	</tr>
	<tr>
		<td align="right">属性：</td>
		<td><input type="text" name="attribute" id="attribute" size="16" value="{[$result.attribute]}"></td>
	</tr>
	<tr>
		<td align="right">操作：</td>
		<td><input type="text" name="op" id="op" size="12" value="{[$result.op]}"> <select id="op_t" name="op_t">
			{[html_options options=$op_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">数据：</td>
		<td><textarea rows="2" name="value" cols="40">{[$result.value]}</textarea></td>
	</tr>
	<tr>
		<td width="20%" align="right">备注：</td>
		<td width="80%"><textarea rows="4" name="content" cols="40">{[$result.content]}</textarea></td>
	</tr>
</table>

<script type="text/javascript">
$(function() {
	_change("input[id='attribute']:visible", "select[id^='attribute_t']:visible");
	
	_change("input[id='op']:visible", "select[id^='op_t']:visible");
});

</script>